package com.pzhu.mapper;

import com.pzhu.pojo.Brand;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BrandMapper {
    List<Brand> selectAll();

    Brand selectById(int id);

    List<Brand> selectByName(String name);

    //参数多于一个时要用注解@Parm
    //List<Brand> selectByCondition(@Param("status") int status, @Param("companyName") String companyName ,@Param("brandName") String brandName);

    //List<Brand> selectByCondition(Brand brand);
    List<Brand> selectByCondition(Map map);
}
